
package com.fire.eyes.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.fire.eyes.dao.FireMaintainUserMapper;
import com.fire.eyes.model.FireMaintainUserModel;
import com.fire.eyes.service.IFireMaintainUserService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;
import java.util.Map;

/**
 * 维保单位用户Service
 *
 * @author Matthew
 * @Date 2019-01-17 20:48
 */
@Service
public class FireMaintainUserServiceImpl extends ServiceImpl<FireMaintainUserMapper, FireMaintainUserModel> implements IFireMaintainUserService{

    private static final Logger LOGGER = LoggerFactory.getLogger(FireMaintainUserServiceImpl.class);

    @Autowired
    private FireMaintainUserMapper fireMaintainUserMapper;

    @Override
    public FireMaintainUserModel selectOne(FireMaintainUserModel entity){
        return fireMaintainUserMapper.selectOne(entity);
    }

    @Override
    public List<FireMaintainUserModel>selectList(FireMaintainUserModel model){
        return fireMaintainUserMapper.selectListByModel(model);
    }

    @Override
    public Page<FireMaintainUserModel> selectPage(int currentPage, int pageSize, Wrapper<FireMaintainUserModel> wrapper){
        return selectPage(new Page<FireMaintainUserModel>(currentPage,pageSize), wrapper);
    }

    @Override
    public Page<Map<String, Object>> selectMapsPage(int currentPage, int pageSize, Wrapper<FireMaintainUserModel> wrapper){
        return selectMapsPage(new Page<FireMaintainUserModel>(currentPage,pageSize), wrapper);
    }

}
